﻿using rbac.domain.Entity;

namespace rbac.domain.Interface;

public interface IRolePermissionRepository
{

    /// <summary>
    /// 为角色分配权限
    /// </summary>
    /// <param name="roleId">角色</param>
    /// <param name="permissionIdList">权限列表</param>
    /// <returns></returns>
    int DistributeRolePermission(int roleId,List<int> permissionIdList);


    /// <summary>
    /// 权限角色获取权限列表
    /// </summary>
    /// <param name="roleId">角色</param>
    /// <returns></returns>
    List<Permission> GetPermissionByRoleId(int roleId);

}